package com.fs.repository;

import com.fs.entity.Price;
import com.fs.entity.Room;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface PriceRepository extends JpaRepository<Price,Integer> , JpaSpecificationExecutor<Price> {
    Integer countByRoom(Room room);

    List<Price> findByRoom(Room room);
}
